﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CheckRates.aspx.cs" Inherits="JinJiang.BookingEngine.Web.cn.CheckRates" %>

<%@ Register Src="usercontrol/UserLogin.ascx" TagName="userlogin" TagPrefix="uc1" %>
<%@ Register Src="usercontrol/InputCreditCard.ascx" TagName="PageCC" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="css/hubs1_dfb.css" type="text/css" rel="Stylesheet" />
    <script language="javascript" type="text/javascript" src="JS/resetiframe.js"></script>
</head>
<body id="bodyBooking" runat="server">
    <form id="mainForm" runat="server">
    <table width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <div id="Div1">
                    <script language="javascript" type="text/javascript">
<!--
                        function AcceptPoliciesClick() {
                            if ((document.getElementById("AcceptPolicies").checked && document.getElementById("chkPrepay") == null) || (document.getElementById("AcceptPolicies").checked && document.getElementById("chkPrepay").checked)) {
                                document.getElementById("<%= btnOrder.ClientID %>").disabled = false;
                            }
                            else {
                                document.getElementById("<%= btnOrder.ClientID %>").disabled = true;
                            }
                        }
                        function NoSmooking(obj) {
                            if (obj.checked) {
                                document.getElementById("NoSmooking").innerHTML = "<font color=DodgerBlue>如需预订无烟房，酒店将尽量安排</font>";
                            }
                            else
                                document.getElementById("NoSmooking").innerHTML = "";
                        }
                        function page_load() {
                            if (document.getElementById("<%= btnOrder.ClientID %>") != null)
                                document.getElementById("<%= btnOrder.ClientID %>").disabled = true;
                        }
-->
                    </script>
                    <asp:Literal ID="ltrScores" EnableViewState="true" runat="server"></asp:Literal>
                    <div id="main">
                        <asp:Panel ID="pnlErr" runat="server">
                            <br />
                            <table border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td width="12%" rowspan="2">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="0%">
                                                    <img src="images/jiao4.gif" width="7" height="23" />
                                                </td>
                                                <td width="100%" background="images/jiao4line.gif" class="style4">
                                                    <div align="center">
                                                        提示信息</div>
                                                </td>
                                                <td width="0%">
                                                    <img src="images/jiao4a.gif" width="7" height="23" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td height="16">
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td height="7" bgcolor="#40587C">
                                    </td>
                                </tr>
                            </table>
                            <table width="98%" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF">
                                <tr>
                                    <td>
                                        <br />
                                        <table border="0" align="center" cellpadding="5" cellspacing="0">
                                            <tr>
                                                <td colspan="4" class="text_titl">
                                                    预订无法完成，原因如下：<br />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="4" style="height: 24px">
                                                    &nbsp;<asp:Label ID="lblErr" runat="server" Text="Label" BackColor="Gainsboro" BorderColor="#E0E0E0" BorderWidth="5px" Font-Bold="True" Font-Overline="False" Font-Strikeout="False" ForeColor="OrangeRed"></asp:Label>
                                                </td>
                                            </tr>
                                        </table>
                                        <br />
                                    </td>
                                </tr>
                                <tr>
                                    <td height="7" bgcolor="#40587C">
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <table class="table_NoBoder" cellpadding="5" cellspacing="0" style="margin-bottom: 20px;">
                            <tr valign="top">
                                <td>
                                    <asp:Label ID="lblHotelName" runat="server" Text="Label" CssClass="font_message"></asp:Label>
                                </td>
                                <td rowspan="3">
                                    <asp:Image ID="imgHotel" runat="server" ImageAlign="Right" CssClass="grayboder" BorderWidth="1" />
                                </td>
                            </tr>
                            <tr valign="top">
                                <td>
                                    <span class="bluetext STYLE5" id="address1" runat="server">地址：</span> <span class="bluetext STYLE5" id="Hotel_titletel" runat="server">电话：</span> <span class="bluetext STYLE5" id="fax" runat="server">传真：</span>
                                </td>
                            </tr>
                            <tr valign="top">
                                <td>
                                    <span class="bluetext STYLE5" id="subtitle" runat="server">简介：</span>
                                </td>
                            </tr>
                            <tr valign="top">
                                <td>
                                    <span class="font_message" id="slogan" runat="server"></span>
                                </td>
                            </tr>
                        </table>
                        <uc1:userlogin ID="Userlogin1" runat="server" Visible="false"></uc1:userlogin>
                        <asp:Panel ID="pnlRequestInfo" runat="server">
                            <br />
                            <table cellpadding="10" class="table_other">
                                <tr>
                                    <td>
                                        <span class="font_bold">入住详细信息</span>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <span class="font_boldBlue">
                                            <asp:Label ID="LabelRoomName" runat="server" Text=""></asp:Label></span><div align="right">
                                            </div>
                                        <div runat="server" id="divpric">
                                        </div>
                                        <br />
                                        <table width="90%" border="0" align="center" cellpadding="3" cellspacing="0">
                                            <tr>
                                                <td>
                                                    <ul>
                                                        <li>
                                                            <asp:Label ID="lblRoomName" runat="server" Text=""></asp:Label>
                                                        </li>
                                                        <li>
                                                            <asp:Label ID="lblRoomDesc" runat="server" Text=""></asp:Label><br />
                                                            <asp:Label ID="LabelPlanDesc" runat="server" Text="Label"></asp:Label></li>
                                                        <li>
                                                            <asp:Label ID="LabelChickIn" runat="server" Text="Label"></asp:Label>
                                                            至
                                                            <asp:Label ID="LabelCheckout" runat="server" Text="Label"></asp:Label>
                                                            (
                                                            <asp:Label ID="LabelNights" runat="server" Text="Label"></asp:Label>
                                                            房夜)</li>
                                                        <li>
                                                            <asp:Label ID="LabelRoom1" runat="server" Text="Label"></asp:Label></li>
                                                        <li>总价：<span id="TotalPrice" runat="server" />
                                                            <asp:Label ID="LabCurreny" runat="server"></asp:Label>
                                                            <span id="PAYdesc" runat="server"></span></li>
                                                    </ul>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <br />
                        <div id="divMobile">
                            <asp:Panel ID="pnlGuestInfo" runat="server">
                                <table cellpadding="10" width="100%" class="table_other">
                                    <tr>
                                        <td>
                                            <span class="font_bold">客人详细信息</span><br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table width="100%" border="0" align="center" cellpadding="5" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <span class="STYLE6">请输入本次预订客人的详细信息。在这个区域输入的姓名将被用作更改或取消本次预订，所以请正确输入。<br />
                                                        </span>
                                                        <table width="100%" align="center">
                                                            <tr>
                                                                <td style="width: 120px;">
                                                                    客人姓名 <span class="STYLE1">*</span>
                                                                </td>
                                                                <td>
                                                                    <table>
                                                                        <tr>
                                                                            <td valign="top">
                                                                                <asp:TextBox ID="LastName" Width="100px" MaxLength="30" runat="server"></asp:TextBox>姓
                                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="LastName" ErrorMessage="请输入姓" Display="Dynamic" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                                            </td>
                                                                            <td>
                                                                                &nbsp;<asp:TextBox ID="FirstName" Width="100px" MaxLength="30" runat="server"></asp:TextBox>名
                                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="FirstName" Display="Dynamic" ErrorMessage="请输入名" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    电子邮件 <span class="STYLE1">*</span>
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="GuestEmail" Width="150" MaxLength="50" runat="server"></asp:TextBox>
                                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="GuestEmail" ErrorMessage="您的Email地址有误" ValidationExpression="^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*\.(([a-z]{2,3})|(aero|coop|info|museum|name))$" Display="Dynamic"></asp:RegularExpressionValidator>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="GuestEmail" Display="Dynamic" ErrorMessage="Email必须输入" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    电话号码 <span class="STYLE1">*</span>
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="GuestPhone" Width="150" MaxLength="50" runat="server"></asp:TextBox>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="GuestPhone" ErrorMessage="请输入联系电话" Display="Dynamic" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    客户地址 <span class="STYLE1">*</span>
                                                                </td>
                                                                <td style="height: 26px">
                                                                    <asp:TextBox ID="GuestAddressLine1" Width="250" MaxLength="50" runat="server"></asp:TextBox>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="GuestAddressLine1" ErrorMessage="请输入地址" Display="Dynamic" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    手机号码
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="txtMobile" Width="150" MaxLength="50" runat="server"></asp:TextBox>
                                                                    如果需要短信通知.请输入您的手机号码.
                                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtMobile" ErrorMessage="手机号码格式错误.请重新输入." ValidationExpression="^0?1(3|5)\d{9}$"></asp:RegularExpressionValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    预计抵达时间
                                                                </td>
                                                                <td>
                                                                    <asp:DropDownList ID="dpdCheckInTime" runat="server" Width="55px">
                                                                        <asp:ListItem Value="0100">01:00</asp:ListItem>
                                                                        <asp:ListItem Value="0200">02:00</asp:ListItem>
                                                                        <asp:ListItem Value="0300">03:00</asp:ListItem>
                                                                        <asp:ListItem Value="0400">04:00</asp:ListItem>
                                                                        <asp:ListItem Value="0500">05:00</asp:ListItem>
                                                                        <asp:ListItem Value="0600">06:00</asp:ListItem>
                                                                        <asp:ListItem Value="0700">07:00</asp:ListItem>
                                                                        <asp:ListItem Value="0800">08:00</asp:ListItem>
                                                                        <asp:ListItem Value="0900">09:00</asp:ListItem>
                                                                        <asp:ListItem Value="1000">10:00</asp:ListItem>
                                                                        <asp:ListItem Value="1100">11:00</asp:ListItem>
                                                                        <asp:ListItem Value="1200">12:00</asp:ListItem>
                                                                        <asp:ListItem Value="1300">13:00</asp:ListItem>
                                                                        <asp:ListItem Value="1400">14:00</asp:ListItem>
                                                                        <asp:ListItem Value="1500">15:00</asp:ListItem>
                                                                        <asp:ListItem Value="1600">16:00</asp:ListItem>
                                                                        <asp:ListItem Value="1700">17:00</asp:ListItem>
                                                                        <asp:ListItem Selected="True" Value="1800">18:00</asp:ListItem>
                                                                        <asp:ListItem Value="1900">19:00</asp:ListItem>
                                                                        <asp:ListItem Value="2000">20:00</asp:ListItem>
                                                                        <asp:ListItem Value="2100">21:00</asp:ListItem>
                                                                        <asp:ListItem Value="2200">22:00</asp:ListItem>
                                                                        <asp:ListItem Value="2300">23:00</asp:ListItem>
                                                                        <asp:ListItem Value="2400">24:00</asp:ListItem>
                                                                    </asp:DropDownList>
                                                                    酒店保留时间：<asp:Label ID="lblHoldtime" runat="server" Text="18:00"></asp:Label><span id="checkintime"></span>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    航班信息
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="txtAirInfo" Width="150" MaxLength="200" runat="server"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    需要无烟房
                                                                </td>
                                                                <td>
                                                                    <asp:CheckBox ID="ckbNoSmooking" runat="server" />
                                                                    <span id="NoSmooking"></span>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    备注
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="remark" runat="server" TextMode="MultiLine" Columns="45" Rows="5"></asp:TextBox>
                                                                    <br />
                                                                    您所提出的特殊要求酒店将视情况安排，或者可能要加收相应费用。
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    传真
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="txtFax" Width="150px" MaxLength="50" runat="server" EnableTheming="True"></asp:TextBox>
                                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtFax" ErrorMessage="传真错误，必须是0到9的数字，长度大于8位小于18位" ValidationExpression="[0-9]{8,18}" Width="327px"></asp:RegularExpressionValidator>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                            <uc3:PageCC ID="PageCC" runat="server"></uc3:PageCC>
                                            <br />
                                        </td>
                                    </tr>
                                </table>
                                <br />
                                <br />
                                <table class="table_other" cellpadding="5">
                                    <tr>
                                        <td>
                                            <span class="font_bold">酒店政策</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            请在修改或取消您的预订之前请仔细阅读下列酒店政策。这些信息对您理解酒店预订及取消政策非常重要。
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table width="90%" border="0" align="center" cellpadding="5" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        保证金制度：
                                                    </td>
                                                    <td width="78%">
                                                        <span id="GUAdesc" runat="server"></span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="22%">
                                                        取消制度：
                                                    </td>
                                                    <td width="78%">
                                                        <span id="CXLdesc" runat="server"></span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        税金及服务费：
                                                    </td>
                                                    <td width="78%">
                                                        <span id="Taxdesc" runat="server"></span>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                                <br />
                                <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td align="center" style="width: 100%">
                                            <input type="checkbox" name='AcceptPolicies' id="AcceptPolicies" value='' onclick="AcceptPoliciesClick();" />
                                            是的，我确认上述酒店政策和房型信息
                                            <br />
                                            <div id="divPP" runat="server">
                                                <input type="checkbox" name='chkPrepay' id="chkPrepay" value='' onclick="AcceptPoliciesClick();" />
                                                <font color="#ffcc66"><strong>本房型需要预付保证，需要预付<asp:Label ID="lblPrepay" runat="server" Text="Label"></asp:Label>
                                                    CNY才能完成这个预订。我同意使用银联在线支付系统（chinapay）来完成预付。</strong></font>
                                            </div>
                                            <br />
                                            <asp:Button ID="btnOrder" runat="server" Text=" 预订>>" OnClick="btnOrder_Click" CssClass="btnGo" />
                                            <br />
                                            <br />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    <asp:Label ID="LabelAdults" runat="server" Visible="False"></asp:Label>
    <asp:Label ID="LabelRoomDesc" runat="server" Visible="false"></asp:Label>
    <asp:Label ID="LabelRoom" runat="server" Text="Label" Visible="false"></asp:Label>
    <script language="javascript" type="text/javascript">
        function UserInfoSet(userinfo) {
            if (userinfo == null) return;
            getContrl("<%=FirstName.ClientID %>").value = userinfo[0];
            getContrl("<%=LastName.ClientID %>").value = userinfo[1];
            //            getContrl("<%=FirstName.ClientID %>").readOnly = true;
            //            getContrl("<%=LastName.ClientID %>").readOnly = true;
            getContrl("<%=GuestEmail.ClientID %>").value = userinfo[5];
            getContrl("<%=GuestPhone.ClientID %>").value = userinfo[6];
            getContrl("<%=GuestAddressLine1.ClientID %>").value = userinfo[7];
            getContrl("<%=txtMobile.ClientID %>").value = userinfo[6];
        }
        page_load();
    </script>
    </form>
    <br />
    <br />
    <br />
    <br />
    <asp:Panel ID="googlejs" runat="server">
        <script type="text/javascript">
            var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
            document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
        </script>
        <script type="text/javascript">
            try {
                var pageTracker = _gat._getTracker("UA-10768010-1");
                pageTracker._trackPageview("/cn/booking_input");
            } catch (err) { }</script>
    </asp:Panel>
</body>
</html>
